﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>管理员管理</title>
	<link rel="stylesheet" type="text/css" href="_ADMIN_css/css.css" />
	<script type="text/javascript" src="_ADMIN_js/jquery.min.js"></script>
	<!-- <script type="text/javascript" src="js/page.js" ></script> -->
</head>
<style>
	td{
		padding: 10px 0;
	}
	*{
		outline: none;
	}
	.buttone{
		display: inline-block;
		padding: 1% 1.5%;
		color: white;
		background: #47a4e1;
		border: none;
		border-radius: 4px;
	}
	.cfD{
		display: inline-block;
	}

	.conShow{
		width:72% !important;
	}
	.pagination>li{
		float: left;
		text-align: center;
		border-radius: 5px;
	}
	.pagination>li:hover{
		background-color: #47a4e1;
	}
	.pagination>li:hover>span{
		color: white;
	}
	.pagination>li>a{
		display: inline-block;
		width: 66px;
		line-height: 2rem;
		border-radius: 5px;
		border: 1px solid #CCCCCC;
	}
	.pagination>li>span{
		display: inline-block;
		width: 66px;
		line-height: 2rem;
		color: #47a4e1;
		font-weight: bold;
		font-size: 18px;
	}
	.pagination>li.disabled{
		border-radius: 5px;
		border: 1px solid #CCCCCC;
	}
	.pagination{
		width: auto;
    		height: 100%;
    		margin: 40px auto;
    		float:right;
		margin-right: 3%;
	}

</style>
<body>
<div id="pageAll">
	<div class="pageTop">
		<div class="page">
			<img src="_ADMIN_img/coin02.png" /><span><a href="{:url('admin/index/main')}" target="main">首页</a>&nbsp;-&nbsp;</span>
			角色管理
		</div>
	</div>
	<div class="page">
		<!-- balance页面样式 -->
		<div class="connoisseur">
			<div class="conform">
				<form style="margin-top: 15px">
					<a class="cfD">
						<input class="addUser" id="selectname" type="text" placeholder="请输入需要搜索的内容！" />
					</a>
					<a class="cfD" href="{:url('admin/role/namep')}" id="selectbyname">
						<button class="button" style="position: relative; z-index: -1">搜索</button>
					</a>
					<a href="{:url('admin/role/insert')}" class="cfD">
						<button class="button" style="position: relative; z-index: -1">添加角色</button>
					</a>
				</form>
			</div>
			<!-- bbalance 表格 显示 -->
			<div class="conShow" style="width: auto">
				<table border="1" cellspacing="0" cellpadding="0">
					<tr>
						<td width="66px" class="tdColor tdC">序号</td>
						<td width="255px" class="tdColor">角色姓名</td>
						<td width="210px" class="tdColor">父级</td>
						<td width="380px" class="tdColor">操作</td>
					</tr>
					<tbody class="tablecontent">

					{volist name="result" id="vo"}
					<tr>
						<td>{$key+1}</td>
						<td>
							{$vo.r_name}
						</td>

						<td>
							{switch name="$vo.f_id"}
								{case value="1"}超级管理{/case}
								{case value="2"}推广部主管{/case}
								{case value="3"}电话部主管{/case}
								{case value="5"}前台{/case}
								{case value="6"}咨询部主管{/case}
								{case value="8"}预科主管{/case}
								{case value="9"}教务部{/case}
								{case value="10"}项目开发部主管{/case}
								{case value="12"}项目设计部主管{/case}
								{case value="14"}就业部主管{/case}
								{default /}无父级
							{/switch}
						</td>

						<td>
							<a href="{:url('admin/role/update',['id'=>$vo.r_id])}"><button class="buttone" style="position:relative; z-index: -1">修改</button></a>

						</td>
					</tr>
					{/volist}
					</tbody>

				</table>
				<div class="paging" style="margin-top: 20px; height: 2rem;">
					{$result->render()}
				</div>
			</div>
			<!-- balance 表格 显示 end-->
		</div>
		<!-- balance页面样式end -->
	</div>

</div>

</body>
<script>
		$("#selectname").change(function(){
				var name=$(this).val();
				$("#selectbyname").attr("href","/crm/public/index.php/admin/role/namep?name="+name);
				});
</script>
</html>